placement delete造句
例句與造句
- The placement delete functions are called from placement new expressions.
- Because there is no placement delete expression, one cannot use it to invoke the custom deallocator.
- The " placement " versions of the delete operators and functions are known as placement new and placement delete.
- One must either write a destruction function that invokes the custom deallocator, or call the placement delete function directly, as a function call.
- In such a circumstance, in order to ensure that the program does not incur a memory leak, the placement delete functions are called.
- It's difficult to find placement delete in a sentence. 用placement delete造句挺難的
- If no matching placement delete function exists, no deallocation function is called in the event of an exception being thrown by a constructor within a placement new expression.
- If the constructor throws an exception, it is necessary to deallocate that storage before propagating the exception back to the code that executed the placement new expression, and that is the purpose of the placement delete functions.
- There are also some ( older ) C + + implementations that do not support placement delete ( which, like the exception-throwing allocator functions, were an addition made to C + + when it was standardized ) at all.
- Any new expression that uses the placement syntax is a placement new expression, and any operator new or operator delete function that takes more than the mandatory first parameter ( std : : size _ t and void *, respectively ) is a placement new or placement delete function.